#C++ program to take inputs
Explore tagged Tumblr posts
Text
Oh yeah yesterday I went to my C programming professor's office hours to ask about what's being covered in class tomorrow. Since I can't go bc of my PT appointment overlapping with it & I'm apparently the kind of student that cares about attending every single class now.
While I was there, I ended up chatting with him about a few things, including my current standing in the class. He asked what I got on the midterm exam, & I answered it was an 87, and he told me I was one of the top 5 or 6 scores in the Whole Class (this being a like. Maybe 70 or so person class). Top score was a 92 or 93 (idr lol) & the class average was a 72. Apparently there were a few of us in the upper 80s/lower 90s, but most people got 70s or lower. And once he does the curve on the exam, he said I'd probably end up with a 97 or so on the exam. So yay!!!
And then he told me how he's noticed how I come to class every day and am really active with taking notes and answering questions. Bc I also sit up front all the time lmao. Hadn't even realized how much of a damned teacher's pet I've been being, but I've been Trying to be a good student this year. But he said I was the type of student that if I got an 88% or smth in the class, he'd likely bump me up to a 90% so I'd get an A lol. But he also said so long as I keep up with how I have been, I could possibly get a 100% in the class by the end (bc I've been there for all the extra credit questions in class and whatever).
And just. I went there bc I wanted to make sure I didn't miss anything important in class on Wednesday, and I ended up having my ego stroked for Real. Felt good to have my efforts be recognized.
#speculation nation#now if only i could care that much for my web coding class. but oh well im still keeping up even if its a reluctant shamble much of the time#other stuff we talked about was how im graduating this semester & how i plan to stay in indiana to work#bc i have family here & i like the relatively low cost of living. & im not particularly ambitious.#just wanna make enough money to live comfortably. dont need anything fancy beyond that.#& he talked about how that's a good outlook in life. how he's known ppl who went to fuckin silicon valley or whatever#with high paying jobs. but the cost of living is so high that theyre effectively not making much more money than here#he said smth about like. a $70k salary has just as much strength here than a $120k salary there. smth around those#& he praised me on how i seem genuine and hard-working. so he thinks im gonna do just fine in the industry š„ŗš„ŗš„ŗ#i kinda wanted to keep chatting with him but i had to go to bowling class lol. ended up late to it even#bc i checked my phone for the time while chatting and went Oh Fuck bc it wss 1 min after the class started hfkshfks had to rush off then#but yeah makes me feel very nice about that class. i think it rly is my favorite class this semester.#web programming is pretty rewarding and im glad im taking it. but i was basically a complete newbie in html css and javascript#so ive spent quite a lot of time wanting to tear out my fucking HAIR over these labs. b4 it clicks and im like Haha yayy :3#i like C programming bc it's just so much more logical and regimented. it IS the language that got me to give up my engineering degree#since i was thinking about computer engineering. took my first coding class freshman year. and went 'i love this. i want to do CS now'#didnt do that obviously. but im happy where ive ended up. i wouldnt wanna be a programmer lol#and then my quality engineering in IT class. it's certainly engaging. it's the class i constantly have presentations in tho#had Another one this morning. blah! good to keep in practice but i still dont rly enjoy public speaking lmao#probably the most work intensive of my classes. interesting but Blegh#C programming i just keep up with the labs and do the exams and it's wonderful... so logical and comforting...#oh yeah web programming i also have a few presentations. also gotta fucking. code my project pages by next week ššš#i think it's just the html and css? no javascript yet. thank god. javascript is by far the hardest to learn#but css is so finicky too!!!! ive been struggling with trying to move these fucking input boxes around#i wanna have them on the right!! but they wont go there!!! gotta poke at it more. at least i managed to finish building the form.#still have to finish the lab tho. that was due 2 days ago. lol. also have another one due sunday. AND the project pages. gah!!!#they havent even graded the wireframes yet. i wanted their feedback b4 proceeding to coding >:( oh well#anyways yeah..im keeping busy lol
3 notes
Ā·
View notes
Text
i am suffering
#trying to do to the password assignment problem set that asks for an input and checks if it has:#a lowercase letterā an uppercase letterā a number and a symbol.#if one is absent it spits an error messageā and if they are all given it says it is a valid password.#my thought process was to make integers named lowerā upperā number and symbol#thenā for as long as there is a character in the given stringā#it takes a given character from the stringā and uses a switch function to add 1 to one of the aforementioned integers depending on what sort#of character it is.#if it's lowercaseā it adds 1 to the integer lowerā etc.#and then at the end it checks if all the integers are above zero. if yesā it's valid. if noā it's invalid.#so i wrote something simple with that logic to emulate that.#except! when i try to compile itā my program gives the error message that 'expression is not an integer constant expression' on the line#that checks if given character is lowercase.#i think it's a problem with the ctype library because im not good with it yet.#im looking at the manual pages for ctype.h provided by cs50 but it is giving me net zero information im understanding nothing#what is this! what am i looking at#why won't you understand what i mean when i say 'islower'#i don't want to manually go ''int c > 64 | int c < 90'' it'll take off points for design...#agh! agh. god#šrambling#im taking a break this is enough for today.
0 notes
Note
hey, could I request a fic for ena dream bbq? Ena x reader who's a slightly funky version of a mars rover.
They look like the spirit/opportunity rovers for the most part, with the whole robot head and solar panel wing thing going on. But, their wheels are floating just a little off the ends of their leg thingies, and they can separate into individual pieces making up hands/feet, and their body and legs are a bit more articulated, so the reader can stand up in a more humanoid shape if they so choose.
And on their head, they have a small screen near their cameras, which they use to show emotion using emoticons, because it's a low resolution screen that pretty much only displays a few characters of text. So they just kinda go :] <:D >:/ :P BJ X0 ;3 ':2 c: D8 ',:) :7 (individually not all at once) when they are talking to people. Sometimes they display a word or a few symbols instead tho, like "there's a 37 percent chance of that happening" and their screen says 37%, or they go ??? When confused or something.
They usually stay in regular rover form while traveling, driving on their wheels, and go humanoid when they need to carry something, talk to people, or generally are in a situation where hands are useful. They do have one arm that isn't one of their wheels, but it has somewhat delicate scientific equipment in it, so they don't use it as much for everyday stuff. They also turn off their screen when they aren't actively trying to convey emotions, so usually only when alone or around people they know well and trust.
theyre working together with ena, and on the side just casually taking soil samples and pictures of interesting things. Write whatever you feel like, one shot, hc, anything, whatever you feel inspired to write. Preferably platonic, but if you wanna write a romance I won't stop you. (If you wanna add any other characters like coral glasses or Kane or something that could also be fun, even someone from the series like classic ena or shepherd, but that makes things more complicated so you very much don't have to)
Have a nice day! :D
(sorry this ask is so long and probably goes into unnecessary detail, im a rambler and decided to give a whole character description for some reason ':ā. You don't need to write this if you don't wanna)
This is a cool concept! I don't mind the extra details! Hope hcs are alright
..........
While you don't recall when or where you were built, you do know your purpose: take pictures of intriguing subjects, steal soil and rock samples, etc. etc. Everything you've once done in space, you do here on this world.
But it felt less like a job and more like a hobby. Something that stimulated your circuitry and allowed you to experience "joy" (which you once thought was strictly reserved for living organisms) in everything you found.
Your creators have long since forgotten you...or maybe they all died and didn't think you'd outlive them. You had no orders to follow. No signals to relay. No real mission to accomplish.
So you took it upon yourself to join Ena and Froggy's group, wanting to have some sort of directive, even if it meant helping them accomplish whatever business called for them to do.
Some days, you'd be in the Hub, assisting Coral Glasses with her work regarding the Horse Door, faxing her blood samples and other interesting specimen you've picked up, or she might print a picture of something bizarre she found and ask for your input.
You weren't programmed with a voice (which she doesn't mind since she's not a fan of social interactions and lengthy chats). Instead, you communicate through a screen next to your cameras, which display a variety of emoticons, emojis, and symbols. It's not the greatest resolution, but it gets your point across.
Some icons are indicative of approval, some of disdain, and others...would be confusing for the average person to understand.
For Froggy? He tends to mistranslate what you're trying to say and has the nerve to ask why you made a >:( face.
For Kane? He gets it half the time.....but he's more worried about getting his coins stuck in your wheels again.
For Ena? It's no problem. She knows exactly what you mean every time, acting like she's been there since your construction, while also respecting your autonomy.
When your new and current directive became "eliminate the smoke", you thought the tasks leading to its completion would be simple.
But with Ena, it turns out to be anything but that.
In the Lonely Door, you noticed that the Uncanny Streets had a dry deserted terrain. You had a phobia of dust storms and your wheels getting stuck in sand traps, but thankfully the conditions here don't permit such occurrences. And your solar panels are always keeping your batteries charged, as it never gets dark, either--so in short, travelling around would be the least of your concerns.
While your screen initially displays nothing as you scan the environment, Ena somehow knows what you're thinking and pats the top of your head.
"This will be a great opportunity to gather vital intel and ask invasive questions!" Salesperson grins. "I can smell the opportunities from up here, my friend. Don't you?"
":U....<:)"
"That's the spirit! I couldn't have said it better myself! I vow to get to the bottom of this mysterious Gen--bAthR00M."
"š½?"
"Ew! I didn't need to see THAT!!!" Meanie pretends to retch. "Go take 300 pictures of that cloud for me, you hunk of metal!!"
Funny enough, you don't take her demands as an insult. Your storage is like a bottomless pit, so you could hypothetically take 300 pics of one singular cloud if its shape and placement in the sky intrigued you enough.
But you'd rather stick with her and assist her with the different jobs she's been given.
You can shift between your primary vehicle mode and your more humanoid one for easy interactions with folks--although you being taller than Ena in that latter form leads to Meanie pouting and grumbling under her breath when she thinks you can't see her.
Too bad for her, as your camera/eyes can see 360.
While she talks to people (which is really them messing with her and claiming to be the boss, insulting her species, and eventually giving her something to do), you're just taking pictures of things like the giant melded into the building, the black tree without leaves that's wandering about the outskirts, or the alienlike Wanderers in the sky.
Rescuing Shoryo's pets/babies is easy, as you're able to maneuver around tight spaces and let them rest on your platform, driving them back to the horselike entity.
He felt flattered that you "delivered them to [him] on a silver platter"...which left you wondering if he intended to eat them.
Before you can question it, there's an explosion and you see Ena and the Shaman outside of the now-destroyed Seal House.
After she's given the humanboard, you discover fertile soil deposits around the streets, learning that the head can grow into a full body and help her reach higher places.
The ribcages buried within the dirt intrigued you, but oddly enough...she didn't want you to take any bone samples.
All you wanted to do was perform a light brush, a gentle abrasion on the surface. Just enough to get a microscopic calcium extract so you could determine how old it is.
You had no idea what overcame Ena when her clawed hand latches onto your delicate arm unexpectedly, threatening to damage your analyzers, drills bits, and other scientific equipment embedded into it.
It sets off internal alarms, red lights flashing across your vision, but you silence those in favor of staring at her. "š¦“ā?"
"I just....don't want you to do that. It might hurt him.." Meanie's voice drops into a low whisper, something extremely uncharacteristic of her, as her mitten hand trembles and cradles the humanboard closer to her chest. Like some maternal instinct had overtaken her. "Please.."
Your screen goes dark, but you comply and leave the soil alone.
Perhaps not everything needs exploration.
#i remember opportunity :((#but ty for this very neat request!#clanask#ena x reader#ena dream bbq x reader#dream bbq x reader#robot reader#headcanons#platonic
133 notes
Ā·
View notes
Text
*screaming*
*continued screaming*
Okay. So. My introductory Visual C# class.
The professor for that class was Alice. Alice was the person who spoke in the introductory video and the person who we were supposed to email if we had any issues.
But all of the assignments, lectures, and quizzes were written and delivered by Bob. On the youtube channel "Bob's programming academy." The quizzes included Bob's name, like "if you do X will it return the string ProfessorBob, Professor, Bob, or Professor.Bob?"
This class was really frustrating for me because it was structured in such a way that you could easily pass the class with zero knowledge of the subject - it was totally based on quizzes that you could take an unlimited number of times and we *had* weekly programming assignments but they weren't graded so there was no incentive to do them (and look, if I wanted to teach myself programming with no incentives I could fail for several years to do that on my own, I don't need to pay fifty bucks a unit for that; the reason I am in a *class* and am not self-taught is because I need external motivation. That's why I sought out a class).
Also when there *was* a problem with an instruction that was unclear in one of the videos for the assignments, or if I thought I'd done something correctly that was very much incorrect, it wasn't Alice who had created the instructions, it was Bob - in 2017 no less - and I didn't really feel like I could ask Alice for help with an ungraded assignment that she hadn't written.
So. Now. My Python class.
Today is the first day of class. Professor is Charles.
I go to the mandatory attendance quiz and it is word-for-word the same mandatory attendance quiz as the C# class, down to the final question "what is your personal email address so I can keep in contact with you after the semester?"
I look at the syllabus.
Class grade is based on quizzes. We have assignments but none of them are graded. There's no textbook, just a series of videos from Professor Bob's Programming Academy.
So I'd been toying with staying at this school and trying to take more CS classes instead of going to another school, just to try to keep my records easier to manage, but since it seems like that *ENTIRE DEPARTMENT* is five Professor Bobs in a trenchcoat, I will probably be going somewhere else (and once again trying to force myself to do projects that I already know are *good for me to do* but *useless for the class and a massive time suck*)
I should drop this class. I should drop this class and apply for the other school so that I can start taking classes there in the spring because if I take this class and then go into the object oriented programming class in the spring and it's another professor bob sock puppet and I end up taking twelve units of programming classes where all I learn is how to google answers in a short time frame (something I already know how to do thanks) I am going to fucking lose it.
Also, again: I have a Bachelor's Degree. I spent five years at a community college when I was getting that degree. I took probably a dozen online classes starting in 2005 and going until 2011 in the process of getting that degree.
THIS bullshit, this "I'm your professor but actually I'm not and all the materials were created by someone else in the department or came directly from the textbook publisher and there is no writing and there are no assignments everything is multiple choice quizzes that are automatically graded" is *dogshit.*
This is NOT how online classes worked back in my day, not even online math classes, and as much as I know adjuncts are getting fucked over by academia in general, this isn't something that these professors should be getting paid as much as they are to do. Alice checked whether or not students turned in a hello world assignment and gave a pass/fail grades for three discussion boards that were responses to youtube videos. Nothing else in the class required her input. If this is the level of instruction that students are getting then the class is already automated and the students shouldn't have to pay for it.
This is crap. This is an incredible level of crap.
908 notes
Ā·
View notes
Text
Wild Kratts Academy?
Okay, this might be a bit of an out of the box idea, but what if the Wild Kratts Crew hosted a school or summer camp for the Wild Kratts kids (and any of the fankids created by members of the WK fandom)?
It could either be like a boarding school situation where the children travel/live with the Wild Kratts for a certain part of the year, and they are with their families the rest of the year.
Or, it could be a summer camp type deal where they join the Kratts for the summer and hone in on important educational skills and animal/environmental knowledge (I feel like this is probably the more logical option, but Iāll explain both scenarios below the cut).


For the boarding school optionā¦.During the time they are with the Wild Kratts, they would learn not only basic skills (reading, writing, math), but there would, obviously, be a huge emphasis on science/creatures! Namely, science or creature based activities would be utilized to help teach the children.
For example: The kids need to learn their letters and sounds, so they will go find creatures whose names begin with those letters/sounds. Or, the children need to learn counting: welp, letās take them out to count the number of elephants in the herd. And those are just some basic/kindergarten level examples (kindergarten educator here š).
Different members of the Wild Kratts team would be assigned to different subjects and age groups. All members would assist with the science part of course, but they could each take specific subjects/age groups.
Perhaps Koki could teach reading/language arts to younger children. Chris could teach math to older students. And so on. (Iām just brainstorming here, Iām not sure which subjects would fit which WK member best, if anyone has any advice or suggestions, feel free to add them in a reblog!)
I also love the idea of the villains, redeemed in this scenario of course, taking part in the learning venture. I feel like Donita would be a fabulous animal (inspired) art teacher. Gourmand a wonderful culinary teacher, specializing in vegetarian meals or foods that are made to look like animals, but are not made from animals.

For the summer camp option, it would be much of the same concept, but instead of having an emphasis on educational activities geared to learn core content knowledge, the activities would be focused solely on science/animal/environment based learning.
With this option, I feel like Aviva would take on a great part of the leadership role, and she would formulate the camp activities to reflect those similar to the experiences she and Zach shared at science camp as children.
Speaking of Zach and the villainsā¦
Funding for such a program could come from grants or donations, and I feel like Zach, and to a lesser extent Donita, Gourmand, and Paisley, would be the individuals responsible for many of these monetary aids.
In turning to the side of good they wanted to help the future generations not turn to villainy against animals and the environment like they had. So, they would use their own money to help ensure the program is well funded.

And if my OC Violet was part of the action in this scenario (speaking specifically of the boarding school option)ā¦. I feel sheād totally be responsible for the academics for the youngest Wild Kratts Academy members: the kindergartners and 1st to 2nd grade aged students.

As a bit of a side note, but also a possible explanation to how this program may have started, Iāve played around with the idea of Zach and Violet homeschooling their children. After some input from @novazentryx I truly feel like this would be the best move for Zach and Violet with their own children.
Due to their work life and busy schedules it would be difficult to remain in one place and allow the children to obtain schooling in a traditional setting (because Zach and Violet join the Wild Kratts Team in the years following the births of their eldest children).
So, Zach and Violet would already have their children with them, so perhaps they could be the āpilot childrenā for the program. Along with some of the Wild Kratts kids we know and love, and fankids/children of the other Wild Kratts characters (in my AU the fankids created by @rosey100 @lovelynurseandhenchman and @octoqueen10 exist so maybe your fankids will join in or will participate in the summer camp option if not full time/the boarding school???)
Anyway, I hope all of this makes sense, feel free to add to this post if you all would like!
#wild kratts#wild kratts au#martin kratt#chris kratt#aviva corcovado#jimmy z#koki wild kratts#zach varmitech#wild kratts zach#love zach varmitech#violet varmitech#ziolet#wild violet au#donita donata#gaston gourmand#paisley paver#schooling#students#wild kratts academy#wild kratts oc#jig posting
86 notes
Ā·
View notes
Text
Markus Has A Pretty Mouth
Connor sticks his fingers in it.
(requested by @julee92)
Words: 726
Rating: M (it's just finger sucking. thats the whole thing.)
Markus is perched on the edge of the bed, cradling his head in his hands. "It's been a long day," he sighs.
Connor is standing over him, rolling up the sleeves of his white button up. "Allow me to make it longer?" he propositions.
Once his sleeves are secure, Connor gently grabs Markus's chin and angles it up to look at him. Pale fingers trace the almost imperceptible lines that break up the freckled brown skin. Markus's appearance was designed to perfectly reflect his personality, both hard and soft in the most pleasing combination. Connor enjoys looking at him, touching him, knowing him.
"Well that depends," answers Markus. "Fun longer or stressful longer?"
"Fun longer," Connor confirms. "At least, that's my intention." Markus sighs with relief and arousal as a thumb parts his lips. "Whether I will succeed is yet to be seen." Pushing his thumb further into the android's mouth earns Connor a content hum. "You like that, kitten?"
Markus gives a subtle nod, careful not to disrupt the thumb inside of him.
Connor runs his silicone pad over plush lips and synthetic enamel. "Such a pretty mouth," he muses. He continues his exploration, prodding and caressing every inch of the cavity.
Connor. Even through direct communication Markus's voice is coated in lust. More. Please.
The thumb is promptly replaced by two fingers, long and slender, pushing all the way in. Markus lets out a soft moan before closing his lips around the digits. HIs mismatched eyes stare up at Connor as he sucks. He struggles to maintain the eye contact as he experiences more and more stimulation to his oral sensors. By the time Connor adds a third finger Markus's lids hang low, moisture welling beneath them.
Connor experiences no sensation from the exchange. That's not why he enjoys it. The sound alone is satisfaction enough. Increasingly wanton moans with a steady rhythm of soft wet noises. Delicious. Connor slips his pinky in, filling Markus's mouth with the full width of his hand. Thick lashes flutter open with surprise, allowing a single tear to overflow and run down his cheek. His program is so overwhelmed but this is exactly what Markus needs; the inability to process anything outside of this moment. Markus's jaw goes slack, eyes sliding closed, consumed by sensation. The pauses between his moans grow shorter until the sound becomes a steady purr.
Connor's fingers continuously thrust into the opening, flooding Markus's sensitive tongue with constant input. "Such a messy kitty," he remarks. Artificial saliva dribbles down Markus's chin and Connor's wrist in a constant stream, his overworked sensors producing an excess of the fluid.
"Look at me," Connor commands.
Markus tries to obey but his optic units won't focus. Too much of his processing power is occupied by the stimulation in his mouth. Connor pushes in further, forcing Markus's jaw wide as he reaches down his throat. The purring stops, breaking way to small choked noises. Generally blocked airways are not an issue for androids but the nature of this obstruction specifically interferes with Markus's voice box and ventilation system. He won't be able to take Connor's hand this deep for very long without serious malfunction.
Markus dismisses the warning notifications in his HUD, tears falling freely down his face. He trusts Connor to pull out when it becomes mechanically necessary but he wishes that time would never come. Having Connor inside him like this, an unignorable intrusion, inspires a sense of closeness almost akin to interfacing.
The inevitable moment comes and Connor removes his arm, leaving Markus wet and panting. He tries again to hold his lover's gaze and this time it's easier. A tall, slim waisted android comes into focus, brown eyes looking down at him in fascination.
Internal fans work overtime to cool Markus's overloaded circuits. There is a gentle sway to his posture as his systems regulate. Connor moves to sit on the bed, positioning Markus between his legs. One hand reaches under Markus's shirt, exploring his muscular frame, while the other returns to his mouth. Markus relaxes his weight, allowing Connor's body to prop him up. They sit like that for a while, Markus suckling on two of Connor's fingers with contentment.
"It would seem I have succeeded," notes Connor. His tone is matter of fact but there is a satisfied smile on his lips.
"I don't want to stop," murmurs Markus in reply.
"Then don't."
#bottom markus representation#twink top representation#kitty markus representation#barely but its there#no beta we die like simon#rk1k#minific#smut#dbh fanfic#the amount that i had to finger fuck my own face to write this is honestly hilarious to me#whole ass fic
23 notes
Ā·
View notes
Text
Learning C++ | Log #1
Friday 20th October 2023
I have been studying C++ for some time now, and I'm really happy with my progress. I really thought it was a super difficult programming language (I am jinxing it right now, aren't I?), but what I mean is that even the beginner stuff would be hard. But it's not!
Two days ago, I stumbled upon a website called Saymor Academy, buried seven pages deep in Google. I decided to check out the CS107: C++ Programming course, and I'm so glad I did! I've been learning so much, and it's been a blast, especially since I'm taking the course along with my friend over on Discord teaching me C++ too.
Learning can be challenging, but it's also incredibly rewarding. Once I master the basics, I'll be able to create all sorts of amazing things. I can't wait!
In the meantime, I'm just enjoying the journey~! So if you're ever thinking about learning C++, I highly recommend checking out Saymor Academy. It's a great resource, and it's a lot of fun!
ā What I learnt today...
History of C++
Syntax
Comments
Data types
Variables
User Input
⤷ ā” my shop ā my mini website ā pinned ā navigation ā”
#xc: studies#codeblr#coding#progblr#programming#studyblr#studying#computer science#tech#cplusplus#c++ studies#c++ programming#c++ language
153 notes
Ā·
View notes
Text
"To build their model, Niu borrowed mathematical techniques from an unexpected source:Ā general relativity, the theory used to describe the warping of space and time. While relativity explains how gravity bends space-time, the researchers applied similar geometric principles to explain how the looping paths of yarn create curvature in knitted fabrics."

"Where knitting meets origami
Niu explains that the work fits into the larger focus of Kamien's group, particularly its research on kirigami, the art of cutting paper to create complex, foldable structures.
"Kirigami, much like knitting, is an example of how geometry can be used to encodeĀ mechanical propertiesĀ into a material," she says.
The team'sĀ previous workĀ has explored how strategically placed cuts in a sheet can cause it to morph into specific three-dimensional shapes when stretched. The insights from knitting take this idea further, showing that a material's internal structureānot just its cutsācan dictate how it folds and unfolds.
"The parallels between knitting and kirigami are striking," Kamien says. "In kirigami, you add cuts; in knitting, you add loops. But in both cases, you're programming geometry directly into the material so that it shapes itself without requiring extra inputs like heat, hinges, or reinforcements."
Dion coined a new term for this approach: knitogamiāa fusion of knitting and origami that captures the idea of self-folding textiles. "We call it knitogami because it extends the principles of origami into a soft, fabric-based medium," she explains.
"Instead of relying on folds and creases in paper, we're using the inherent elasticity and structure of knitted loops to create dynamic, shape-shifting materials." "
First of all, stitch patterns a and c look like smocking patterns (Canadian smocking, wave pattern and lattice pattern specifically)
Secondly, I need to mess around with stitch pattern E. That's wild
24 notes
Ā·
View notes
Text
Here she is. From start to now.
Transcript.
Age 10-15
Carla Radames was a child that was picked out of the United States foster care system by the Simmons Foundation for her abnormal aptitude in a variety of academic subjects. She was adopted as a ward of Marshall Simmons at age 6, as part of an accelerated academic study by the Simmons family. She could read fluently at age three, and supposedly speak in complete sentences. Mostly non-verbal, Carla also picked up American Sign Language as a means of communication. She began to speak at age 12.
As Marshallās ward, she was placed into accelerated academic programs and in high workload environments very early, and at age 10 her guardianship was transferred to Derek C. Simmons and she was fast tracked into a university level education in biomedical sciences per Derekās agreement to take her as his ward.Ā
Carla attended prestigious universities, graduating as a teenager with several scholarly articles attributed to her. She worked on several certifications and degrees during this time, not having a single moment where she wasnāt entrenched in academia.
During this time she achieved her PhD. in Virology, her expansive thesis being on HPV and potential vaccination paths to prevent certain types of cancers.Ā
After she graduated, Derek immediately put her into a position as Head Researcher in the Tall Oaks laboratory, seeing someone that he had unparalleled control over.
She began work on Project Ada immediately, the true purpose of the project obfuscated to her.Ā
-
Age 16-21
As Project Ada continued, failure after failure worsened the relationship between Derek and his ward. Carla spent days upon weeks attempting to use both the Golgotha and T-Veronica viruses as a basis to stimulate human viral parthenogenesis.Ā
She tested these beta Chrysalid proto viruses on more than 12,000 women, some alive and some dead, destroying all of them at Derekās insistence when the cloning experiments failed.Ā
Surrounded by death and Derekās consistent cruelty as her only actual social connection numbed her to the horror of what she was doing. Eventually the women were just numbers and failures, and Carla was just a very empty husk of a person.Ā
Carla developed a way to rapidly get results from her creations, splicing the virus through different species of animals rapidly before attempting another clone chrysalid.Ā
Eventually, the mounting failures drove her to put herself into the project once the bodies both alive and dead dwindled. She cycled Chrysilid through her own body in several controlled rounds and was able to make headway on the project.Ā
Ubivisto, Gnezdo, and several proto-Lepotitsa were created through this process.Ā
Derek was told by one of her lab associates that she had been using herself in the project, and was testing very highly on compatibility.Ā
Derek invited Carla to dinner to discuss the progress on the project, and then killed her later that evening in the Tall Oaks lab.Ā
He took a photograph of the both of them before she died as a memento.
-
Age 21-23
Carla was violently cloned into a perfect image of Ada Wong around the time she worked for Simmons. She was a perfect replica down to the damage in her shoulder from Annete Birkinās bullet.Ā
Carla had no memory of who she was before the moment she hatched from the cocoon. She was told that she had gone critical as a result of a lab accident, and Derek injected her with the C-Virus to save her life. From this point on, her life was structured around the fact that her and Derek were lovers and engaged, and she was struggling with amnesia from the incident. It seemed plausible to her, despite her doubts.
However, no matter what kind of conditioning Derek attempted on her, and how much he tried to structure her life and control the inputs she experienced, Carla began to have violent psychotic breaks, and hear voices. She nightmared of a bygone life, and of being a different person entirely.Ā
Derek married Carla in 2008 in Lanshiang. He explained that her role in his life was like his second in command, and personal vanguard.
She returned to work on her Chrysalid project at the Vinci Medical Research center, and began to expand her social network through Derek and āAdaā.Ā
Derek insisted they have children, but due to the fact Carla was now an amalgam of beasts, she was unable to conceive and the cruel responses to failures returned.
-
Age 24-26
Carla found out what had happened to her through an exploration of Tall Oaks Lab that turned up the evidence of the āHappy Birthday Ada Wongā tape. She had already amassed a large network of connections to utilize at this point, and invested in a despair-induced series of plans that would eventually culminate in the ruin of Derek Simmons.Ā
She built herself an army through infecting anyone who was even slightly interested in trying āexperimentalā medicines, and contracted the building of two facilities based on old oil rigging construction off the coast of China. The Underwater Lab. and the Creature Factory were finished in a speedy two years.Ā
Carla field tested airborne Chrysalid virus in several places, one of which was the prestigious Marhawa Academy. She gave this knowledge to Derek under the prediction that he would use this creation to attempt his own pull on global politics.
She was responsible for the death of Merah Biji, the BSAAās Far East Branch Ace in early 2012 in Marhawa.
All the while, Carla continued to act as if she was smitten with Derek, internally seething. She again developed a parthenogenetic clone to both appease him and hide her true intentions, presenting him with her own lab grown daughter in 2010.
He was deeply disappointed that the child wasnāt a male.Ā
She began work on Project HAOS in late 2010, once again using her own genetics to produce her biological son, an enormous monstrosity with the ability to infect all of the worldās oceans and reign as the Prince of Chaos.
-
Age 26
Carla began to execute the final piece of her network of plans with the kidnapping of Jake Muller and Sherry Birkin from EdoniaĀ on December 24th, in 2012.Ā
She assisted mercenaries in the destabilization of the area, creating swarms upon swarms of Jāavo to serve her purposes. When the BSAA arrived, she slaughtered Chris Redfieldās entire team, save Piers Nivans.Ā
In 2013, the Tall Oaks incident was the perfect trigger for her world of chaos.
Carla claimed responsibility for Derekās attack in Tall Oaks under the group name āNeo Umbrellaā, and began an assault on Lanshiang, China that completely annihilated the city as a distraction.Ā
Carla launched a missile in the center of Lanshiang, transforming everyone in Tatchiās Quad Tower area into zombies. She orchestrated the infection of Derek Simmons, to condemn him to a life of chaos.Ā
Carla slaughtered Chris Redfieldās team a second time, taunting him while she led him to a demonstration of hopeless violence.
In a confrontation between Chris and Leon, Leon defended Carla, mistaking her for Ada Wong prime, and she was able to make it to her aircraft carrier before she was shot by members of āThe Familyā, Derekās coalition of high profile individuals that had banded together to command aspects of politics.Ā
Carla fell off the balcony of the carrier, cracking to the ground where she was found by Ada Wong. Ada expressed sympathies for her, and Carla transformed into a roiling mass of horrific pale tar bodies and screaming faces. She had injected herself with āEnhanced C.ā Carla developed a vaccine to the virus in this same project, though why she did was unknown.
Carla was rendered inert by Ada Wong, who vicariously took her torch and went after Derek Simmons.
Both Haos and her daughter were supposedly killed in Lanshiang.
-
Age 34-
Carla was inert for a long time afterwards, her body reforming in a Chrysalid that had been ingested by a sperm whale. Her body infected the whale while it reformed and healed over a period of seven years.Ā
The whale caused outbreaks of C-Virus as it migrated along the coast, never dying and never being identified as the source of these outbreaks.
A group known as āThe Guildā was hired by Blue Umbrella in 2020 to neutralize an outbreak of C-Virus. Led by ex-USS agent HUNK, the group found the Chrysalid containing Carla inside this infected whale after a titanic battle. She hatched a second time after dreaming for seven years and was taken by The Guild.Ā
The Guild did not report finding her, and named her āAhabā and the whale āMoby Dick.
She works for The Guild now, with other leftover Umbrella monsters in a coalition of monster hunters that never die.Ā
Her new objective and purpose?Ā
Kill any remaining members of āThe Familyā and collapse their institutions.Ā
And she will stop at nothing to get her revenge.
28 notes
Ā·
View notes
Note
A compliment: I enjoy how authenticly/unapologetically you run your blog
ā¢A story: Howw Byler fanfic saved the world. Yesterday, I learned I have to have a meeting with my director (because apparently my director has decided it is not worth it to back me and my decade+ career experience) and my CEO (who used to work at huge marine aquarium) to explain why RODI water is important for both marine and amphibian husbandry because my CEO has decided I do not need an RODI system to provide quality care for the collection I oversee. We are a small nonprofit company, and my section consists of me and one other keeper that takes care of over 50 animals (the majority of which are disabled rescues or geriatric) and an entire native plant outdoor courtyard with a 6,000gal planted pond + design our own educational programing to state standards + do outeaches and feildtrips (and we dont even have a say in the number we do; that is decided by the edu team) + act as our own registrars + conduct multiple daily formal shows and informal interactions + and do all the janitoral work for our display areas (instead of the contracted janitorial team that cleans literslly every other space). I am also paid probably the 6th lowest (my staff is probably paid 4th lowest until her raise kicks in a month from now bumping her right below me) in the entire company even though I run a collection, have a college degree in the animal field, and again over a decade of experience with ectotherms- the only people paid less than me are entry guest service staff (which are not in charge of an entire department nor have college degrees). And yet, I am still going to have to go waste my very limited time to beg our CEO to just let me spend $150 to get new ro membranes and a new float valve instead of just trashing my system completely. My entire budget to run my department (not including staff salaries) is $22,000. It only takes about $1400 every three years to run our rodi (outside of the water cost, which I guarantee is a negligible amount compared to the rest of the company). It will not break the bank to let us keep our rodi machine so that we can properly care for the animals and plants in our collection. Plus, I have now also been informed the entire saltwater aquarium we focused on moving to a new enclosure just two weeks ago so the old tank could be torn down (as the metal framework has rusted to nothing) will be become a fully planted and inhabitanted freshwater tank BB MAY 16TH! Becsuee our CEO "is invested". Which takes priority over my objections- that i only have one other staff who i have forced o to vacation because she is so burnt out so I am going to be working 14 days straight, the freshwater tank is being placed in a hall themed to MARINE LIFE, we have none of the resources required to run a planted tank community (even if we go low tech there is no guarantee the CEO will pick a compatible stock/the echibit hall lighting won't require a higher tech tank), and the rehab plan I was informed I would be following -designed without input from my team-doednt allow for a quarantine period! OH, AND THE REHAB BREAKDOWN IS TO BE DONE TUESDAY, when it is just me running the area. To say I was contemplating many, many mean things after receiving this knowledge is not an understatement. However, KISSINGPRACTICE updated "Sensory Perception" so I didn't blow anything up. And thus Byler fanfic saved the world.
ā¢Why you follow me: scarlet, periwinkle, and chartruse
ā¢A cute message: C:
ā¢One thing you want to tell me: Eastern lubbers have different phenotypic expression based on population density- females become much smaller and shorter in length, making them harder to distinguish from males (so more male-on-male mating occurs) when too many grasshoppers are in one spot. (I fact dump about bugs when trying to connect with people).
ā¢One thing you want to know about me: what is your favorite thing to do (outside of collecting butt pictures)?
š„ŗš„ŗ
this is so sweet and in depth, thanks dude. I will always be my authentic self even if thats a right bastard haha.
FUCK CEOS. sounds clear to me this person isnt knowledgeable of your field and is just a business business type. how ironic they dont listen to you and then risk the ENTIRE POINT OF PEOPLE COMING TO THE ESTABLISHMENT. curious how much they make at this non profit š¤Ø
Iād love to know how i inspired you or changed how you thought about something!! is it ass related? i hope so hehe.
gay bugs woo!! your name makes even more sense now. what are the gayest bugs? will they also solve hunger crises or is that just grasshoppers and such?
oooo my fave thing to doā¦playing video games! and writing, but you know i write. im a big gamer and im back to playing elden ring and Bg3 (the latter is approaching the 1000hr mark š¤£šµāš«)
7 notes
Ā·
View notes
Text

AKAI - SB1 - Deep Impact
"... for a lengthy spell, bassists that used pedals were given a side-eye.
But as synth pedals continue to be made, itās hard to believe that some of its earliest heavy-hitters were released in the ā80s and ā90s, such as the Korg X-911 and the DigiTech XP300 Space Station. But while those faffed about with a more general kitchen-sink approach to the subject, it was Akai in 200X that came out with the most potent offering to date. This is the Akai SB1 Deep Impact.
Although some places claim the Deep Impact came out in the late ā90s, nobody that I know is entirely sure when the Deep Impact was released. As far as I can tell, it was 2002. Prior to that, Akaiās āprofessionalā website came out with guns blazing about its silver boxed series that included the VariWah and Intelliphase. However, a short time later, Akai Proās website appeared to go dark, resurfacing with pictures of gleaming mixers and MPCs. Itās too bad; the Head Rush, Unibass and Deep Impact were arguably the best pedals Akai ever produced.Ā
When a pedalās endorsee list contains players like Bootsy Collins, Chris Wolstenholme and Paul Turner of Jamiroquai, you pretty much know what to expect: throbbing, guttural filter sweeps with a funk chaser. And yeah, you get that. But you get a pretty bang-on stab at a host of synth patches, including fifths, warbling pads and much more. Itās not without its limitations, though.
The Unibass and Deep Impact were centered on the frequency range of the bass guitar; the Unibass generated a fat unison mode with an octave up and subtle thickening, which is easily adaptable to six strings. However,Ā the Deep Impact in particular made no bones about its applications. When played with a guitar, notes outside of the bass frequency range cut through at a very distinct threshold, and not in a āhardware limitationā kind of way; there is a literal cut-off point. One note in a scale gets enveloped in the circuit, and the very next rings through as if there was no effect at all.
The way itās used is deceptively complex. Like the old analog synths it seeks to replicate, dialing in a patch takes a little effort, and in the same way as many of them. Two of the unitās three knobs are for input and output levelsāthe Input control is accented with a metering system and lets you set the clipping threshold of the unit before setting the output volume. While two-thirds of the knobs are standard fare, the money is in the program system.Ā
On offer are nine programs with a blank parametric slate. The left footswitch cycles through these programs in ascending order, while an optional footswitch cycles in descending order, and the center control cycles through 10 different parameters (and one preset loading option), all of which are fully adjustable with the rotary encoder in the center of the unit. Most of them correspond to controls on real analog synths, such as (filter) Cutoff, Resonance, Attack and Decay. When you factor in this multi knob, the Deep Impact actually has 12 controls for your tweaking pleasure, far more than the competition. And the ends to which you can adjust the tone are relatively absurd.
While vintage synths of yore can oscillate and destroy your ears when the resonance is cranked, Akai thoughtfully keeps the extent of the parameters usable. With that being said, the Deep Impact will mercilessly punish any subwoofer placed before it. Akai promises a four-oscillator affair within the Deep Impact and while thereās no way to dial it in solely based on those merits, it certainly sounds gargantuan. Itās probably why they are worth so much.
The original designer of the Deep Impact, one Andras Szalay, revived the project well after Akai washed its hand of the line under the company name PandaMIDI and the product name Future Impact I. For a spell, it was tough even to get one of those, and prices encroached upon the original. Now on its third revision, readily available and with a new brand name, the Future Impact continues to carry the torch. Thereās just something about that Akai unit, though..."
cred: catalinbread.com/blogs/kulas-cabinet/akai-db1-deep-impact
28 notes
Ā·
View notes
Text
Clarity trumps efficiency.
*I would've liked to write this essay to be understandable for someone without a programming/Linux background, but it was a bit too difficult. If you skip to the paragraph beginning with "...", it gets a bit easier from then on.
If youāve ever written your own shell scripts you may have heard of the phrase āuseless use of cat*ā, or less tactfully, ācat abuseā. This refers to the practice, common among new shell script enthusiasts, of writing commands like ācat file.txt | grep nameā, when āgrep name file.txtā would serve perfectly well. Tools like shellcheck will bug you about itāalong with similar constructions like āps ax | grep Discord | wc -lā instead of āpgrep -c Discordā.
Well, Iām here to defend cat abuse! There are two arguments I see against the cat | grep construction, one of which is valid but situational, and the other of which is completely invalid. The former is that the extra pipe just adds additional overhead into the command. Yes, it does. And itās unlikely to matter at all if youāre using it on 20KiB text files on a system built in the past 40 years; however, in production, when writing tools that need to be able to deal with arbitrarily large text files as efficiently as possible, sure.
The latter is āwell, itās just unnecessaryā. I disagree. I think the cat | grep constructionāalong with similar such as grep | wc, ps | grep, ps | awk, and so onāserves a very important purpose in that it makes shell scripts easier to read, easier to modify, and easier to debug.
Consider this example from above:
ps ax | grep Discord | wc -l
Read the process table; filter for "Discord"; count the number of lines. Itās very atomic. Each operation can be swapped out for something else without confusing the reader. On the other hand:
pgrep -c Discord
Now, this does the same thingācounting the number of lines in the process table with "Discord" in them. It looks like only one operation... but itās really still three in disguise. And worse, imagine you suddenly want to add another filter; sorting not only by Discord, but by processes that include the word ātitleā. This is not straightforward at all! It turns out that while regex has a standard way of searching for alternatives, it really does not provide an easy method for searching for BOTH of two words. On the other hand, with the atomic version, itās easy:
ps ax | grep Discord | grep title | wc -l
Take that, āuselessā use of cat.
Thereās a broader meaning, though, to my statement of āclarity trumps efficiencyā. I apply it to every aspect of use of electronics, from web searches to backup routines to yes, silly little shell scripts that use cat.
I use command aliases, but to a pretty limited degree; I avoid cutesy stuff like āllā for āls -lā and āyeetā for āpacman -Rnsā, along with possibly-dangerous substitutions like ārmā for ārm -iā; Iād never dream of aliasing ānanoā or āviā to my preferred text editor (vim). I believe strongly that my commands should be transparent, and saving me from my own muscle memory once or twice is not worth making them completely opaque.
Tab completion on the other hand is one of my favorite features in the shell. Itās the perfect combination of transparent and convenient; without having to alias any of my application names or get hit by the information overload fuzzy finding gives you, I can still launch any of them in no more than four keystrokes. (Except audacious and audacity, admittedly.)
I use a floating window manager (Openbox), and when I need to briefly use a tiling layout, I have a very boring way of doing so: focusing each window one by one and moving it into the slot I want. (While holding down the Super/Windows key, 1-C-2-V does a basic left-right split.)
... I make some use of spellcheck on assignments to be turned in, but never autocorrect, which I abhor even in messaging apps. Every change to your inputs should be deliberate; otherwise youāll never learn what youāre doing wrong, and youāll never need to be precise because youāve turned over that part of your brain to the algorithm.
This leads me to an important corollary of my principle: āitās better to have a slow algorithm that you understand, than a fast one that you donātā.
Satya Nadellaās vision of the PC of the future is one where you tell it what to do in natural language and it interprets that using LLMs and so on into machine instructions. Instead of viewing a PC as a toolbox you go into the workshop with, and work on projects with in certain defined ways, he wants the PC to be an assistant; you give the assistant directions and pray that it gets things right. Of course you arenāt allowed into the workshop with the tools anymore; thatās the assistantās job!
Anyone whoās used Google Search over the past ten years knows how miserable this model is; you search for a specific phrase that Google āhelpfullyā corrects to something it thinks you meant. There was a learning curve to the old way, but once you learned how to state queries precisely, you were done; now you need to play psychologist, sociologist, and statistician all at once.
This is a decent part of why I dislike generative AI, though far from the main reason. I donāt want an opaque algorithm making decisions for me, unless those decisions are incredibly low-level stuff like core parking that no human should be directly involved with in the first place.
To get back to my own setup, I have a whole text file documenting the system maintenance process I go through once every month; most of it could be automated, but I make every step a deliberate choice. Not to go all new-age, but for me specificallyāit all ties back in to mindfulness.
I think people have only a vague concept of what mindfulness is. Until two years ago or so, I was the same way. But to who I am now, mindfulness means not doing anything on autopilot. Instead of letting yourself half-doze off on a drive home, scarcely remembering the 20 minutes from the parking lot to the garage, be conscious of every turn. Instead of immediately putting on music and blocking out the world on a train ride to the next city, force yourself to be present in the train car, and notice the way the light reflects on the plastic seat two rows in front.
And to me, clarity in code, and in UX, is a part of this mindfulness. Programs that are easy to read, easy to modify, and easy to debug encourage you to look closerāto consider every atom that goes into their statements instead of taking them for granted. Slow algorithms that you understand can help you think of improvements; fast algorithms that you donāt encourage you to give up and leave the real thinking to someone else.
So write silly little shell scripts with five pipes in a single statement, and yes, that uselessly use cat. Rather than doing anything wrongāyouāre allowing yourself and others to think, to try, and to improve.
#programming#linux#mindfulness#i would have gotten deeper into spirituality in this essay but i think it would've scared anyone off#might post on another site#shell script
12 notes
Ā·
View notes
Text
re: math posting, i didn't actually get, like, formal education beyond the... 7th grade? and so among other things i never took any kind of higher math class. i never learned any calculus and i barely know any algebra. but b/c i do all the programming, i'm very used to thinking of math as like... a series of transformations you're taking to sort information correctly to get a calculated value that's in the right units.
(the classic word problem of like, you know, if the large pizza is $18.29 and that has a 14-inch diameter, you can calculate that 18.29 / ((14/2)^2 * pi) = 0.1188, which of course is in units of dollars per square inch of pizza. if the medium is $15.69 and a 12-inch pizza, then the equivalent calculation = 0.1387, so the medium is actually more expensive per square inch of pizza you get.
what makes that meaningful instead of just a random calculation is that you actually know what you're doing and can meaningfully relate the inputs to the outputs. if you do it the other way around, ((14/2)^2 * pi) / 18.29, you get 8.4165, which is in units of... square inches of pizza bought per dollar? so you'd want that to be larger, instead of smaller, assuming you want more pizza. but if you don't follow what you're doing it's very easy to get flipped around and calculate something you didn't mean to.)
the point of all that is that sometimes people will ask me questions about complex math stuff and i'll be like, okay i don't know how to do that and i can barely read that math notation but it sounds like you're trying to do such-and-such and the way i would think of that problem is by so-and-so. i have no clue what the valid calculus formula are but i have a lot of practical matrix math experience from all the programming so probably i will reconstruct the problem in matrix math form and then explain it that way, or something, just b/c matrices are one of the few tools in my toolset. but it's all grounded with a lot of practical coding math experience, which is kind of the opposite of all of that "memorized the formula but have no clue how to actually operate anything" stuff
6 notes
Ā·
View notes
Text
The C Programming Language Compliers ā A Comprehensive Overview
Ā C is a widespread-purpose, procedural programming language that has had a profound have an impact on on many different contemporary programming languages. Known for its efficiency and energy, C is frequently known as the "mother of all languages" because many languages (like C++, Java, and even Python) have drawn inspiration from it.
C Lanugage CompliersĀ
Developed within the early Seventies via Dennis Ritchie at Bell Labs, C changed into firstly designed to develop the Unix operating gadget. Since then, it has emerge as a foundational language in pc science and is still widely utilized in systems programming, embedded systems, operating systems, and greater.
2. Key Features of C
C is famous due to its simplicity, performance, and portability. Some of its key functions encompass:
Simple and Efficient:Ā The syntax is minimalistic, taking into consideration near-to-hardware manipulation.
Fast Execution:Ā C affords low-degree get admission to to memory, making it perfect for performance-critical programs.
Portable Code: C programs may be compiled and run on diverse hardware structures with minimal adjustments.
Rich Library Support: Although simple, C presents a preferred library for input/output, memory control, and string operations.
Modularity:Ā Code can be written in features, improving readability and reusability.
Extensibility:Ā Developers can without difficulty upload features or features as wanted.
Three. Structure of a C Program
A primary C application commonly consists of the subsequent elements:
Preprocessor directives
Main function (main())
Variable declarations
Statements and expressions
Functions
Hereās an example of a easy C program:
c
Copy
Edit
#include <stdio.H>
int important()Ā
Ā Ā printf("Hello, World!N");
Ā Ā go back zero;
Letās damage this down:
#include <stdio.H> is a preprocessor directive that tells the compiler to include the Standard Input Output header file.
Go back zero; ends this system, returning a status code.
4. Data Types in C
C helps numerous facts sorts, categorised particularly as:
Basic kinds: int, char, glide, double
Derived sorts: Arrays, Pointers, Structures
Enumeration types: enum
Void kind:Ā Represents no fee (e.G., for functions that don't go back whatever)
Example:
c
Copy
Edit
int a = 10;
waft b = three.14;
char c = 'A';
five. Control Structures
C supports diverse manipulate structures to permit choice-making and loops:
If-Else:
c
Copy
Edit
if (a > b)Ā
Ā Ā printf("a is more than b");
Ā elseĀ
Switch:
c
Copy
Edit
switch (option)Ā
Ā Ā case 1:
Ā Ā Ā Ā printf("Option 1");
Ā Ā Ā Ā smash;
Ā Ā case 2:
Ā Ā Ā Ā printf("Option 2");
Ā Ā Ā Ā break;
Ā Ā default:
Ā Ā Ā Ā printf("Invalid option");
Loops:
For loop:
c
Copy
Edit
printf("%d ", i);
While loop:
c
Copy
Edit
int i = 0;
while (i < five)Ā
Ā Ā printf("%d ", i);
Ā Ā i++;
Do-even as loop:
c
Copy
Edit
int i = zero;
doĀ
Ā Ā printf("%d ", i);
Ā Ā i++;
Ā while (i < 5);
6. Functions
Functions in C permit code reusability and modularity. A function has a return kind, a call, and optionally available parameters.
Example:
c
Copy
Edit
int upload(int x, int y)Ā
Ā Ā go back x + y;
int important()Ā
Ā Ā int end result = upload(3, 4);
Ā Ā printf("Sum = %d", result);
Ā Ā go back zero;
7. Arrays and Strings
Arrays are collections of comparable facts types saved in contiguous memory places.
C
Copy
Edit
int numbers[5] = 1, 2, three, 4, five;
printf("%d", numbers[2]);Ā // prints three
Strings in C are arrays of characters terminated via a null character ('').
C
Copy
Edit
char name[] = "Alice";
printf("Name: %s", name);
8. Pointers
Pointers are variables that save reminiscence addresses. They are powerful but ought to be used with care.
C
Copy
Edit
int a = 10;
int *p = &a;Ā // p factors to the address of a
Pointers are essential for:
Dynamic reminiscence allocation
Function arguments by means of reference
Efficient array and string dealing with
9. Structures
C
Copy
Edit
struct PersonĀ
Ā Ā char call[50];
Ā Ā int age;
;
int fundamental()Ā
Ā Ā struct Person p1 = "John", 30;
Ā Ā printf("Name: %s, Age: %d", p1.Call, p1.Age);
Ā Ā go back 0;
10. File Handling
C offers functions to study/write documents using FILE pointers.
C
Copy
Edit
FILE *fp = fopen("information.Txt", "w");
if (fp != NULL)Ā
Ā Ā fprintf(fp, "Hello, File!");
Ā Ā fclose(fp);
11. Memory Management
C permits manual reminiscence allocation the usage of the subsequent functions from stdlib.H:
malloc()Ā ā allocate reminiscence
calloc()Ā ā allocate and initialize memory
realloc()Ā ā resize allotted reminiscence
free()Ā ā launch allotted reminiscence
Example:
c
Copy
Edit
int *ptr = (int *)malloc(five * sizeof(int));
if (ptr != NULL)Ā
Ā Ā ptr[0] = 10;
Ā Ā unfastened(ptr);
12. Advantages of C
Control over hardware
Widely used and supported
Foundation for plenty cutting-edge languages
thirteen. Limitations of C
No integrated help for item-oriented programming
No rubbish collection (manual memory control)
No integrated exception managing
Limited fashionable library compared to higher-degree languages
14. Applications of C
Operating Systems:Ā Unix, Linux, Windows kernel components
Embedded Systems:Ā Microcontroller programming
Databases:Ā MySQL is partly written in C
Gaming and Graphics:Ā Due to performance advantages
2 notes
Ā·
View notes
Text
Currently scrolling on my phone whilst waiting for my Python program to finish running.
And before you say āC++ is so much faster!ā I know this.
The rate limiting factor is the input speed of my mouse and the time it takes to open a window and load something in a browser.
Donāt ask why Iām doing this over 900 times, but it had to be done.
5 notes
Ā·
View notes
Text
15/DEC/20XX
šµš©š¶šÆš¬.
i hit the floor like a sack of bricks.
toriel lifted me up and set me back on the couch i'd just been accidentally tossed from.
pulling a blanket over me, she whispered sorry.
still not entirely sure what was happening, a few pieces clicked into place when i heard frisk's voice from the entrance of the house.
some things were said back and forth before i heard frisk clomp loudly down the hall to their room.
not thinking to see who else tori was still at the door with, i slipped behind her to see what frisk was up to.
a dinosaur-printed notebook tucked under their arm, still searching around the room for something.
they pulled open a drawer and found a pack of colored pencils.
something like a squeak came from their mouth when they spun around and saw me in the doorway.
their eyebrows furrowed at me slightly.
"You look like you just woke up."
"astute observation."
"You having just woken up and also being here aren't lining-"
"....Up.."
their brows furrowed further.
"You slept here."
"again, you are ever so astute."
"Why?"
"why?"
"Why did-"
"NEVERMIND."
"w-"
"hey. hold on."
"i'm not orderin' you another apology pizza for something that didn't happen."
"What, me walking in on it?"
"šŖšµ. at all."
"you've probably gotten word of my bro's plans for my magic whatever, right?"
"Something about magic demonstrations."
"right."
"well, undyne's was on wednesday."
"tori's; yesterday."
"undyne's was... exhausting, to say the least."
"so, sometime during yesterday's, i ended up crashing on the couch in there."
conceding easier than i figured they would, frisk brushed past me to exit the room.
i accompanied them to the front door, taking notice of who the other individual was that they'd arrived with a bit too late.
"...asgore."
"heya."
couldn't tell what the expression on his face meant, seeing me here so casually.
surprise was part of it, for sure.
"Sans."
"Good morning."
"Or, I suppose it is getting a tad bit later in the day... Perhaps deeming it noon is more appropriate."
"probably."
"......"
"........"
he expected me to say something else, but i didn't have any other input.
"..Well then."
we spoke at the same time.
"Have you gotten everything you were going to grab, Frisk?"
"got everything you came for, kiddo?"
turning between me and asgore for a moment, they picked looking at the items in their hands as a good enough middle point.
"Mhm."
"Then."
speaking before any more silences began, tori knelt to hug frisk.
"I will see you again soon, my child."
"When he wakes up, do tell Flowey hello for me."
"Will do."
shrugging my shoulders, i opened my arms to offer a hug as well.
"Will I see you soon too?"
"won't turn you away if you show up."
"Even if you did, Papyrus would let me in."
"true."
"and you'd come bug me anyway."
"Of course."
asgore directed his attention towards tori.
"It was nice to see you."
"Not much time was had."
"That is true."
"Then, sometime, would you like-"
"I am quite a bit busier recently."
"..Ah."
"As are we all, it seems."
he chuckled, but seemed a bit deflated.
"Have a good day, Asgore."
"The same to you."
he nodded towards me.
"Both of you."
with the clunk of the door shutting, tori pat my shoulder.
"Would you like anything in particular for breakfast?"
"whatever's good to me."
" 'Whatever?' "
"That recipe is unknown to me."
"it's a local snowdin dish."
"Hmmm... I will have to look into it."
"In the meantime, how do pancakes sound?'
āā
so carefully placing chocolate chips on her pancake, i couldn't help but glance over at her arrangement.
i started laughing stupidly.
she looked over at mine.
she slapped her hand over her mouth.
it bore an identical phallic shape.
we both began cackling terribly in our immaturity.
likely 'cause i haven't had them in a hot minute, but pancakes taste ten times better than i remember.
āā
"tv programs aren't all that interesting around this time, huh?"
"What, do you not enjoy the weather channel?"
"you underestimate my love for relative humidity."
"Ahh. Opaque Cloud Coverage, my favorite!"
"really a good one."
"...so, you wanna watch a movie or somethin'?"
fake gasp.
"I cannot believe you would suggest changing from such an interesting watch."
with having already changed the channel herself.
āā
don't know how it was decided that i was staying the weekend, but papyrus seemed to pick up on this occurrence faster than i did.
"Oh!"
"Good afternoon, Papyrus."
"Are you taking him home...?"
the disappointment in her voice was noticable.
"NO."
"I DON'T THINK SO."
he peeked inside. i waved, and he waved back.
i then shrugged, quickly switching to shaking my head "no" before realizing i even did.
"AS I THOUGHT."
"I AM SIMPLY HERE TO PROVIDE HIM WITH HIS PHONE, WHICH HE CARELESSLY LEFT AT HOME."
"explains the lack of messages. don't know how i didn't notice sooner. sorry, bro."
"I TRIED TO ASK MS. TORIEL IF THERE WAS ANYTHING ELSE YOU NEEDED, BUT IT SEEMS NEITHER OF YOU CHECK YOUR DEVICES SUDDENLY."
"Sorry. Your brother is quite the distraction."
"got told that when i was younger a lot."
"Were you such a troublemaker?"
"CLASS CLOWN, MORESO."
leaning into it, i made a 'honk-honk' gesture where a clown's nose would be. (or anyone's nose who has a nose.)
his reaction was completely ignoring me. tori enjoyed it.
when he handed my phone to her, it looked like a toy in size.
papyrus is naturally big-handed as well, though unburdened by having fur making the screen even harder to use; a normal-sized phone works just fine for him.
neither use them as much more than messaging devices.
"BLANKETS ARE NOT AN ISSUE, I AM MORE THAN AWARE."
"HE ALREADY HAS HIS JACKET..."
"DO YOU NEED ANYTHING WARMER TO WEAR?"
"i'm good."
"YOU ARE NOT LETTING HIM SKIP MEALS, I'M CERTAIN."
"Of course not."
"IS HE DRINKING WATER?"
i sloshed a water bottle sat beside me loudly in response.
"NO PAIN?"
"all good."
"ALRIGHT,"
he said, deeming his mental checklist complete.
"THANK YOU FOR CARING FOR HIM SO WELL, MS. TORIEL."
"As always, it is more than a pleasure to have him over."
"HAVE A GOOD AFTERNOON-"
"OR, NIGHT, RATHER. IT GOT DARK QUICKLY."
"GOODNIGHT, MS. TORIEL!"
"GOODNIGHT, SANS! TELL ME IF YOU NEED ANYTHING! DON'T ANNOY HER TOO MUCH."
"no promises."
"I will annoy him just as much, do not worry."
he waved, and soon the door clunked shut after another unexpected arrival today.
āā
it was already getting dark, but it felt like the rest of the night slipped away from us so quickly over silly conversations and random banter that i soaked in every minute of.
yesterday night's happening didn't repeat itself.
something felt missing when she bid me goodnight, and she left for her own bed.
there's no reason to feel like anything was missing; yesterday was brand new. hasn't happened before.
when i sleep over, this is always how it is.
it's not that i'm uncomfortable. this is a nice couch, and i've got enough blanketing and pillows at my disposal that i could have a cushiony body double if i wanted.
didn't have anything i needed to do today; papyrus would definitely have reminded me if that were the case.
is it that i'm not in my own bed that feels strange? not the type of guy to get homesick so easily; can't say i really prefer either my bed or here more.
or maybe it doesn't matter at all, and i should just roll over and forget it.
āā
don't know why my soul raced when i heard the quiet creak of a door, followed by footsteps making their way into the room.
she spoke softly.
"..Sans, are you awake?"
don't know why the racing got faster.
"what's up?"
"other than both of us, apparently."
she giggled, and stepped a bit closer so we could properly see one another.
her fur, slightly messy, reminded me of a certain video call we'd had.
tori appeared to consider something.
"..Nothing in particular, but..."
"It does feel a bit odd, does it not?"
"i think i agree, but... what feels odd?"
"We are the only two in the house,"
leaning closer.
"But we are sleeping in different rooms."
my soul felt ready to throw itself across šµš©šŖš“ room.
"so let's not."
"we can be in the same room all you want."
"your house, right?"
getting on the couch, she crawled so that she was at my side, looking down at me.
"If it being mine is all you care about..."
"Then I hope you do not mind sharing a-"
šÆš²š²š½.
"....?"
i looked at the screen on my ulna.
red.
"damn it."
š„š¢š®šÆ šŖšµ.
"Is that not a watch?"
"it's a meter."
"s'posed to tell me if this overflow stuff's getting too overflow-ey."
"alphys made it."
"How does it work?"
"there's a thing attached to my sternum too. got cords and whatnot. reads my soul that way, i guess."
"Can I see the device?"
"on my... sternum?"
"If you are comfortable with it."
a lot of things bounced around in my skull at that moment, one of them being the probably wrong choice i made.
"...sure. why not?"
"you've seen my ribs before."
"what's one more time?"
"but, let's..."
noticing my glance at our position, she quickly sat up.
"reposition elsewhere for this."
so we turned on a lamp, and sat in the middle of the floor.
no chickening out now, i lifted my shirt and pointed to the monitoring device.
she looked at it, getting closer as she did so.
"That cord."
"Is that one not a bit loose?"
"Allow me to-"
i'm not sure her hand even brushed my soul before i flew backwards, books thumping to the floor around me as i crashed against the shelf.
"......."
"better to do it myself."
whatever i actually mumbled was certainly less coherent than that.
under her shock, she almost seemed slightly amused.
though, embarrassment might have warped my interpretation of her expression.
something about this lady makes me weak to proximity all of a sudden.
"Sorry, Sans."
"I did not mean to startle you in any way."
"it's late; i'm jumpy anyway."
"don't blame yourself."
toriel watched with interest as i refastened the cord.
letting my shirt fall, i sighed.
"well."
taking a look at the meter, it unfortunately didn't magically un-become red on its own.
"you wanna sit here and watch me summon bones for thirty minutes, or go back to bed?"
"I've already made it this far, it would be pointless to leave you now."
"far into what?"
"some plan i don't know about?"
"A plan to have a hug buddy through this cold weather."
"simple plan."
pulling me to her with an amount of ease that will never not surprise me, she wrapped her arms around me.
āā
"Is that as large as they are?"
i summoned a longer bone to the floor.
"Is that more effective than the small ones?"
"more about the damage output than size when it comes to how much magic is used for bone attacks."
"So it is not size that matters after all."
"all this dick humor in one day? where'd your maturity go, old lady?"
"There are no children around."
"only one man-child."
"We are both immature."
"i get worse around you."
"And I around you."
"equally terrible influence on each other."
"Couldn't have it any other way."
"nope."
āā
š±š¶š»š“.
"eugh. finally."
giving up on caring about anything at this point, i sunk the rest of my weight into toriel, who gently lifted my arm to look at the monitor screen.
"Should it be yellow?"
"that's the middle ground."
"gonna be riding that for a while."
"I see."
"...Let us get to sleep before we end up awake the whole night."
something similar to yesterday was resumed without much thought behind it.
neither of us cared anymore how we laid, or how we looked.
just nestling into however was most comfortable, we slept like two very tired, but happy logs.
#undertale#journal#sans#toriel#sans x toriel#soriel#toriel x sans#frisk#asgore#frisk and sans#papyrus#sans and papyrus#the slowburn suddenly caught fire today.
46 notes
Ā·
View notes